package sngltn;

public class Myobj {

    private static Myobj a;

    private Myobj() {
    }

    public static Myobj getinstance() {
        if (a == null) {
            a = new Myobj();
            System.out.println("Unique Obj created!");
        } else {
            System.out.println("Already created");
        }
        return a;
    }
}
